<?php if(!class_exists("View", false)) exit("no direct access allowed");?><!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>鲲|聚合平台</title>
    <!-- zui -->
    <link href="http://p1.renbenzhihui.com/zui/css/zui.min.css" rel="stylesheet">
    <link href="http://p1.renbenzhihui.com/zui/lib/datatable/zui.datatable.min.css" rel="stylesheet">
    <style>
        .navbar_top {margin-bottom: 0px;}
        .navbar { border-radius: 0; }
        body {padding-bottom: 40px;background-color: #efefef;}
        #footer {
            position: fixed;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 1010;
            height: 40px;
            background: #fff;
            border-top: 1px solid #eff1f7;
        }
        #poweredBy {
            position: absolute;
            top: 4px;
            right: 0;
            padding: 5px 10px;
        }
    </style>
</head>

<body>
    <header id="header">
        <div id="mainHeader" class="navbar navbar-inverse navbar_top"  role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">                    
                    <!-- 移动设备上的导航切换按钮 -->
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-example">
                        <span class="sr-only">切换导航</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <!-- 品牌名称或logo -->
                    <a class="navbar-brand" href="<?php echo url(array('c'=>"Main", 'a'=>"Index", ));?>">鲲|工作台</a>
                </div>
                <div class="collapse navbar-collapse navbar-collapse-example">
                    <ul class="nav navbar-nav">
                        <li <?php if ($_controller == "main") : ?> class="active" <?php endif; ?> data-id="my"><a href="<?php echo url(array('c'=>"Main", 'a'=>"Index", ));?>" class="active"><span>
                            应用面板</span></a></li>
                        <li class="divider"></li>
                        <li <?php if ($_controller == "system") : ?> class="active" <?php endif; ?> data-id="admin"><a href="<?php echo url(array('c'=>"System", 'a'=>"Index", ));?>">后台</a></li>
                    </ul>
                    <!-- 右侧的导航项目 -->
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="#">帮助</a></li>
                        <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo htmlspecialchars($_kp_realname, ENT_QUOTES, "UTF-8"); ?> <b class="caret"></b></a>
                        <ul class="dropdown-menu" role="menu">
                            <li class="user-profile-item">
                                <a href="#" class=" no-role">
                                    <div class="avatar avatar bg-secondary avatar-circle">A</div>
                                    <div class="user-profile-name"><?php echo htmlspecialchars($_kp_realname, ENT_QUOTES, "UTF-8"); ?></div>
                                    <div class="user-profile-role"></div>
                                </a>
                            </li>                            
                            <li class="divider"></li>
                            <li><a href="<?php echo url(array('c'=>"Login", 'a'=>"Logout", ));?>">退出</a>
                            </li>
                        </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div id="subHeader" class="navbar navbar-default">
            <div class="container">
                    <ul class="nav navbar-nav">                        
                        <?php if ($_controller == "system") : ?>
                        <li <?php if ($_action == "index") : ?> class=" active" <?php endif; ?> data-id="index"><a href="<?php echo url(array('c'=>"System", 'a'=>"Index", ));?>">用户</a>
                        </li>
                        <li <?php if ($_action == "departmentindex" || $_action == "departmentbrowse") : ?> class=" active" <?php endif; ?> data-id="index"><a href="<?php echo url(array('c'=>"System", 'a'=>"DepartmentBrowse", ));?>">部门</a>
                        </li> 
                        <li <?php if ($_action == "permissionindex") : ?> class=" active" <?php endif; ?> data-id="index"><a href="<?php echo url(array('c'=>"System", 'a'=>"PermissionIndex", ));?>">权限</a>
                        </li>
                        <li <?php if ($_action == "appsindex" || $_action == "appsprivindex") : ?> class=" active" <?php endif; ?> data-id="index"><a href="<?php echo url(array('c'=>"System", 'a'=>"AppsIndex", ));?>">应用</a>
                        </li>  
                        <?php elseif ($_controller == "main") : ?>
                        <li <?php if ($_action == "index") : ?> class=" active" <?php endif; ?> data-id="index"><a href="<?php echo url(array('c'=>"Main", 'a'=>"Index", ));?>">首页</a>
                        </li> 
                        <?php endif; ?>                       
                    </ul>
            </div>
        </div>
    </header>
    <!-- 在此处编码你的创意 -->
    <?php include $_view_obj->compile($__template_file); ?>
    <footer id="footer">
        <div class="container">
            <!--<ul class='breadcrumb'><li><a href='/www/index.php?m=my&f=index' >禅道</a>
      </li><li><a href='/www/index.php?m=my&f=index' ><span> 我的地盘</span></a>
      </li></ul>-->
            <div id="poweredBy">
                备案号：<a target="_blank" href="http://www.beian.miit.gov.cn">京ICP备17041512号</a>
            </div>
            <!--<div id='poweredBy'>
            <small class='muted'><a href='https://api.zentao.net/goto.php?item=aiux' class='link-aiux' target='_blank'>Designed by <strong>艾体验</strong></a></small> &nbsp;
            <a href='https://www.zentao.net' target='_blank'><i class='icon-zentao'></i> 禅道12.0</a> &nbsp;
            <a href='https://api.zentao.net/goto.php?item=proversion&from=footer' target='_blank' id='proLink' class='text-important'>专业版 <i class='text-danger icon-pro-version'></i></a> &nbsp;           </div>-->
        </div>
    </footer>

    
</body>

</html>